﻿//-----------------------------------------------------------------------
// <copyright file="PagingInfo.cs" company="上海Zoomla!逐浪CMS团队 ">
// Copyright ShangHai Zoomla!CMS Team.  All rights reserved.
// 版权所有：江西逐浪软件科技有限公司   16年专注研发==>商城|ERP|字库|高端门户与人工智能 
// Website:www.z01.com 
// Contact:☎ 13177777714  😎 wechat: zoomla 
// Effect: 用于分页
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SportsStore.WebUI.Models
{
    public class PagingInfo
    {
        public int TotalItems { get; set; }
        public int ItemsPerPage { get; set; }
        public int CurrentPage { get; set; }

        public int TotalPages {
            get { return (int)Math.Ceiling((decimal)TotalItems / ItemsPerPage); }
        }
    }
}